package weather_service.weatherprovider.locationdatamodel;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * SearchLocation
 *
 * @author Nazmul Idris
 * @since Jan 1, 2007, 9:29:01 PM
 */
public class SearchLocation {
  protected String id = "";
  protected String type = "";
  protected String name = "";

  //:::::::::::::::::::::::::::::::::::::::::::::::
  // constructor
  //:::::::::::::::::::::::::::::::::::::::::::::::
  public SearchLocation(){}


  //:::::::::::::::::::::::::::::::::::::::::::::::
  // accessor and mutator
  //:::::::::::::::::::::::::::::::::::::::::::::::
  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  //:::::::::::::::::::::::::::::::::::::::::::::::
  // toString
  //:::::::::::::::::::::::::::::::::::::::::::::::
  public String toString(){
    return ToStringBuilder.reflectionToString( this , ToStringStyle.MULTI_LINE_STYLE);
  }
}
